addNextIntentWithParentStack

@NonNull
open fun addNextIntentWithParentStack(@NonNull nextIntent: @NonNull Intent): @NonNull TaskStackBuilder(source)

Add a new Intent with the resolved chain of parents for the target activity to the task stack.

This is equivalent to calling addParentStack with the resolved ComponentName of nextIntent (if it can be resolved), followed by addNextIntent with nextIntent.

Return

This TaskStackBuilder for method chaining.

Parameters

nextIntent

Intent for the topmost Activity in the synthesized task stack. Its chain of parents as specified in the manifest will be added.